package com.systemframework.sys.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.systemframework.sys.dto.response.SysMenuResponseDTO;
import com.systemframework.sys.entity.SysMenu;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author summer
 * @date 2023-03-10 10:15
 */
@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    /**
     * 查询菜单
     * @param userId
     * @return
     */
    List<SysMenuResponseDTO> findUserAndMenuLists(Integer userId);
}
